<template>
  <div class="hot">
    <a href="">
      <img :src="rank.categoryBigImg" alt="">
      <p>{{rank.title}}</p>
      <span>价格：{{rank.price}}</span>
    </a>
    <a href="">
      <img :src="rank.categoryBigImg" alt="">
      <p>{{rank.title}}</p>
      <span>价格：{{rank.price}}</span>
    </a>
    <a href="">
      <img :src="rank.categoryBigImg" alt="">
      <p>{{rank.title}}</p>
      <span>价格：{{rank.price}}</span>
    </a>
    <a href="">
      <img :src="rank.categoryBigImg" alt="">
      <p>{{rank.title}}</p>
      <span>价格：{{rank.price}}</span>
    </a>

  </div>
</template>

<script>
export default {
  name: 'hot',
  props: ['rank'],
  mounted () {
  }
}
</script>

<style scoped lang='less'>
.hot{
  display: flex;
  justify-content: space-around;
  a{
    width: 24%;
    box-sizing: border-box;
    &:hover p{
      color: red;
    }
    p{
      font-size: 13px;
      line-height: 25px;
      margin: 0;
    }
    span{
      color: #df3033;
      font-size: 25px;
      font-weight: bold;
    }
    img{
      width: 100%;
      height: 75%;
    }
  }
}
</style>
